import { ConeGeometry, Mesh, MeshBasicMaterial, MeshLambertMaterial } from 'three';
//圆锥标注
function createCone(height, x, y){
    const r = height/3;
    const geometry = new ConeGeometry(r, height, 4);
    geometry.rotateX(-Math.PI/2);
    geometry.translate(0, 0, height/2);
    const material = new MeshLambertMaterial({
        color:0x00ffff
    });
    const mesh = new Mesh(geometry, material);
    mesh.position.set(x, y, 0);
    return mesh;
}

export { createCone };